<template>
  <FormItem label="可用性">
    <i-switch :value="value" @on-change="v=>{changeValue(v)}" />
  </FormItem>
</template>

<script>
export default {
  props: ['value'],
  data () {
    return {};
  },
  methods: {
    changeValue (value) {
      this.$emit('updateValue', {
        value,
        name: 'disabled'
      });
    }
  }
};
</script>
